package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="TaskItemInstance"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class TaskItemInstance implements Serializable {

    /** identifier field */
    private Long id;

    /** nullable persistent field */
    private Long taskInstanceId;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String url;

    /** nullable persistent field */
    private String needDo;

    /** nullable persistent field */
    private String isdone;

    /** full constructor */
    public TaskItemInstance(Long taskInstanceId, String name, String url, String needDo, String isdone) {
        this.taskInstanceId = taskInstanceId;
        this.name = name;
        this.url = url;
        this.needDo = needDo;
        this.isdone = isdone;
    }

    /** default constructor */
    public TaskItemInstance() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="ID"
     *             unsaved-value="0"
     *         
     */
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="TaskInstanceID"
     *             length="18"
     *         
     */
    public Long getTaskInstanceId() {
        return this.taskInstanceId;
    }

    public void setTaskInstanceId(Long taskInstanceId) {
        this.taskInstanceId = taskInstanceId;
    }

    /** 
     *            @hibernate.property
     *             column="Name"
     *             length="60"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="URL"
     *             length="100"
     *         
     */
    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    /** 
     *            @hibernate.property
     *             column="NeedDo"
     *             length="10"
     *         
     */
    public String getNeedDo() {
        return this.needDo;
    }

    public void setNeedDo(String needDo) {
        this.needDo = needDo;
    }

    /** 
     *            @hibernate.property
     *             column="IsDone"
     *             length="10"
     *         
     */
    public String getIsdone() {
        return this.isdone;
    }

    public void setIsdone(String isdone) {
        this.isdone = isdone;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
